<template>
	<view>
		<list-cell icon="iconfont icon-my-dizhiguanli" iconColor="#00aaff" fontSize="46rpx" title="地址管理" @eventClick="goPageCheckLogin('/package_mall/pages/address/address',false)"></list-cell>
		<!-- 		<list-cell icon="iconfont icon-my-xiaoqubangding" iconColor="#00aaff" fontSize="46rpx" title="小区绑定" @eventClick="goPageCheckLogin('/package_mall/pages/user/examineRecord',true)"></list-cell> -->
		<list-cell icon="iconfont icon-my-fangwuxinxi" iconColor="#00aaff" fontSize="46rpx" title="房屋信息" @eventClick="goPageCheckLogin('/package_isp/pages/family/houseList',true)"></list-cell>
		<list-cell icon="iconfont icon-my-jiatingxinxi" iconColor="#00aaff" fontSize="46rpx" title="家庭信息" @eventClick="goPageCheckLoginAndBindCommunity('/package_isp/pages/family/familyInfo',true)"></list-cell>
		<list-cell icon="iconfont icon-my-gerenxinxi" iconColor="#00aaff" fontSize="46rpx" title="个人信息" @eventClick="goPageCheckLogin('/package_isp/pages/family/myInfo?canEdit=true&ownerId='+ownerId,true)"></list-cell>
	</view>
</template>

<script>
	import listCell from '@/components/mix-list-cell';
	export default {
		data() {
			return {
				ownerId: ""
			}
		},
		onLoad() {
			let userInfo = uni.getStorageSync("userInfo");
			if (userInfo && userInfo.ownerInfo && userInfo.ownerInfo.ownerId) {
				this.ownerId = userInfo.ownerInfo.ownerId;
			}
		},
		methods: {
			goPageCheckLoginAndBindCommunity(url) {
				this.$api.sysauth.checkLoginAndBindCommunity(url);
			},
			goPageCheckLogin(url) {
				this.$api.sysauth.checkLogin(url);
			},
		},
		components: {
			listCell
		}
	}
</script>

<style>
</style>
